home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / midas060 / src / mmem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-16  |  2.1 KB  |  92 lines

  1. /*      MMEM.H
  2.  *
  3.  * MIDAS Sound System memory handling routines
  4.  *
  5.  * $Id: mmem.h,v 1.2 1997/01/16 18:41:59 pekangas Exp $
  6.  *
  7.  * Copyright 1996,1997 Housemarque Inc.
  8.  *
  9.  * This file is part of the MIDAS Sound System, and may only be
  10.  * used, modified and distributed under the terms of the MIDAS
  11.  * Sound System license, LICENSE.TXT. By continuing to use,
  12.  * modify or distribute this file you indicate that you have
  13.  * read the license and understand and accept it fully.
  14. */
  15.  
  16.  
  17. #ifndef __MEM_H
  18. #define __MEM_H
  19.  
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25.  
  26.  
  27. /****************************************************************************\
  28. *
  29. * Function:     int memAlloc(unsigned len, void **blk);
  30. *
  31. * Description:  Allocates a block of conventional memory
  32. *
  33. * Input:        unsigned len            Memory block length in bytes
  34. *               void **blk              Pointer to memory block pointer
  35. *
  36. * Returns:      MIDAS error code.
  37. *               Pointer to allocated block stored in *blk, NULL if error.
  38. *
  39. \****************************************************************************/
  40.  
  41. int CALLING memAlloc(unsigned len, void **blk);
  42.  
  43.  
  44.  
  45. /****************************************************************************\
  46. *
  47. * Function:     int memFree(void *blk);
  48. *
  49. * Description:  Deallocates a memory block allocated with memAlloc()
  50. *
  51. * Input:        void *blk               Memory block pointer
  52. *
  53. * Returns:      MIDAS error code.
  54. *
  55. \****************************************************************************/
  56.  
  57. int CALLING memFree(void *blk);
  58.  
  59.  
  60.  
  61.  
  62. /****************************************************************************\
  63. *       enum memFunctIDs
  64. *       ----------------
  65. * Description:  ID numbers for memory handling functions
  66. \****************************************************************************/
  67.  
  68. enum memFunctIDs
  69. {
  70.     ID_memAlloc = ID_mem,
  71.     ID_memFree
  72. };
  73.  
  74.  
  75.  
  76.  
  77. #ifdef __cplusplus
  78. }
  79. #endif
  80.  
  81. #endif
  82.  
  83.  
  84. /*
  85.  * $Log: mmem.h,v $
  86.  * Revision 1.2  1997/01/16 18:41:59  pekangas
  87.  * Changed copyright messages to Housemarque
  88.  *
  89.  * Revision 1.1  1996/05/22 20:49:33  pekangas
  90.  * Initial revision
  91.  *
  92. */